<template>
	<view>
		<gongge :GoPages="true" :Gongge="GongGe"></gongge>

		<!-- <swiper class="swiper" @change="change">
      <swiper-item>
        <u-grid :col="3" @click="click" hover-class="hover-class">
          <u-grid-item
            v-for="(item, index) in GongGe"
            :index="index"
            :key="index"
          >
            <u-icon :name="item.icon" :size="46"></u-icon> -->
		<!-- <u-badge count="9" :offset="[20, 20]"></u-badge> 红标 -->
		<!-- <text class="grid-text">{{ item.msg }}</text>
          </u-grid-item>
        </u-grid>
      </swiper-item> -->
		<!-- <swiper-item>
				<u-grid :col="3" @click="click">
					<u-grid-item v-for="(item, index) in GongGe" :index="index + 9" :key="index">
						<u-icon :name="item.icon" :size="46"></u-icon>
						<text class="grid-text">{{ item.msg }}</text>
					</u-grid-item>
				</u-grid>
			</swiper-item> -->
		<!-- <swiper-item>
			<u-grid :col="3" @click="click">
				<u-grid-item v-for="(item, index) in list" :index="index + 18" :key="index">
					<u-icon :name="item" :size="46"></u-icon>
					<text class="grid-text">{{ '宫格' + (index + 1) }}</text>
				</u-grid-item>
			</u-grid>
		</swiper-item> -->
		<!-- </swiper> -->
		<!-- <view class="indicator-dots" v-if="isSwiper">
		<view class="indicator-dots-item" :class="[current == 0 ? 'indicator-dots-active' : '']">
		</view>
		<view class="indicator-dots-item" :class="[current == 1 ? 'indicator-dots-active' : '']">
		</view>
		<view class="indicator-dots-item" :class="[current == 2 ? 'indicator-dots-active' : '']">
		</view>
	</view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				current: 0,
				GongGe: [{
						icon: "hourglass-half-fill",
						msg: "天气",
						url: "./toolCabinetpages/weather/weather",
					},
					{
						icon: "photo-fill",
						msg: "图片文字识别",
						url: "./toolCabinetpages/OCRImage/ImageRecognition",
					},
					{
						icon: "reload",
						msg: "二维码生成",
						url: "./toolCabinetpages/QtCode",
					},
					{
						icon: "zhihu-circle-fill",
						msg: "哔哩哔哩",
						url: "./toolCabinetpages/bilibili/bilibili",
					},
					{
						icon: "zhihu-circle-fill",
						msg: "webivew",
						url: "./toolCabinetpages/webivew/index",
					},
					{
						icon: "chat",
						msg: "聊天",
						url: "./toolCabinetpages/chat/index",
					},
					{
						icon: "play-circle",
						msg: "音乐",
						url: "./toolCabinetpages/music/index",
					}, {
						icon: "scan",
						msg: "扫一扫",
						url: "./toolCabinetpages/scan/index",
					}, 
					// {
					// 	icon: "setting",
					// 	msg: "uni功能",
					// 	url: "./toolCabinetpages/functionalTest/index",
					// }, 
					{
						icon: "chrome-circle-fill",
						msg: "Chromium",
						url: "./toolCabinetpages/Chromium/index",
					},
				],
			};
		},
		methods: {

		},
	};
</script>

<style scoped lang="scss">
	/* 下方这些scss变量为uView内置变量，详见开发  组件-指南-内置样式 */

	.grid-text {
		font-size: 28rpx;
		margin-top: 4rpx;
		color: $u-type-info;
	}

	.swiper {
		height: 100vh;
	}

	.indicator-dots {
		margin-top: 40rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.indicator-dots-item {
		background-color: $u-tips-color;
		height: 6px;
		width: 6px;
		border-radius: 10px;
		margin: 0 3px;
	}

	.indicator-dots-active {
		background-color: $u-type-primary;
	}
</style>
